package wang.java;

public class XQ {
    private String num;
    private String str;


    public XQ(String num, String str) {
        this.num = num;
        this.str = str;
    }

    public boolean match(String par) {
        return par.equals(num) || par.equals(str) ? true : false;
    }

    public String getNum() {
        return num;
    }

    public void setNum(String num) {
        this.num = num;
    }

    public String getStr() {
        return str;
    }

    public void setStr(String str) {
        this.str = str;
    }
}
